import request from '@/utils/request'

// 查询海岛北斗事件列表
export function listBeidouEvent(query) {
  return request({
    url: '/device/beidouEvent/list',
    method: 'get',
    params: query
  })
}

// 查询海岛北斗事件详细
export function getBeidouEvent(id) {
  return request({
    url: '/device/beidouEvent/' + id,
    method: 'get'
  })
}

// 新增海岛北斗事件
export function addBeidouEvent(data) {
  return request({
    url: '/device/beidouEvent',
    method: 'post',
    data: data
  })
}

// 修改海岛北斗事件
export function updateBeidouEvent(data) {
  return request({
    url: '/device/beidouEvent',
    method: 'put',
    data: data
  })
}

// 删除海岛北斗事件
export function delBeidouEvent(id) {
  return request({
    url: '/device/beidouEvent/' + id,
    method: 'delete'
  })
}
